Fix typo in gtk_window_set_default() documentation
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 3 Mar 2014 10:43:38 +0000 (10:43 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Mar 2014 23:12:25 +0000 (18:12 -0500)
The documentation should link to gtk_widget_grab_default() rather than
gtk_widget_grab_focus().

https://bugzilla.gnome.org/show_bug.cgi?id=725559

gtk/gtkwindow.c

index aeda7f67798f9c5089afa85d6f139b1b633c4b6f..ab51e488405cd46753aafa0bf4a6d138e07ca2a6 100644 (file)
@@ -2175,7 +2175,7 @@ _gtk_window_internal_set_focus (GtkWindow *window,
  * presses Enter in a dialog (for example). This function sets or
  * unsets the default widget for a #GtkWindow about. When setting
  * (rather than unsetting) the default widget it’s generally easier to
- * call gtk_widget_grab_focus() on the widget. Before making a widget
+ * call gtk_widget_grab_default() on the widget. Before making a widget
  * the default widget, you must call gtk_widget_set_can_default() on the
  * widget you’d like to make the default.
  **/